<% ver_no = @<%= file_name %>_page.revisions.size - @<%= file_name %>_page.revisions.index(@<%= file_name %>_revision) %>

<div id="main-alt">
<ul class="tab_nav">
  <li><%= link_to 'Article', <%= file_name %>_path(@<%= file_name %>_page.slug) %></li>
  <% if logged_in? %>
  <li><%= link_to 'Edit this page', edit_<%= file_name %>_path(@<%= file_name %>_page.slug) %></li>
  <li><%= link_to("History", <%= file_name %>_history_path(@<%= file_name %>_page.slug)) %></li>
  <% end %>
</ul>

<div id="wikiContent">

<h2><%= title "Reviewing Version # #{ver_no} of #{@<%= file_name %>_page.title}" %></h2>

<p class="note">
<% if @<%= file_name %>_revision.current_version? %>
This is the current version of <%= @<%= file_name %>_page.title %> modified on <%= @<%= file_name %>_revision.created_on.to_s(:long) %> by <%= link_to(@<%= file_name %>_revision.editor.name, user_path(@<%= file_name %>_revision.editor.id)) %><br/>
<% else %>
This is an older version of <%= @<%= file_name %>_page.title %> modified on <%= @<%= file_name %>_revision.created_on.to_s(:long) %> by <%= link_to(@<%= file_name %>_revision.editor.name, user_path(@<%= file_name %>_revision.editor.id)) %><br/>
<% end %>
<strong>Edit Summary:</strong> <%= @<%= file_name %>_revision.edit_summary %>
<%= link_to("(Rollback to this version)", <%= file_name %>_revision_path(:<%= file_name %>_id => @<%= file_name %>_page.slug, :id => ver_no), :method => :put) unless @<%= file_name %>_revision.current_version? %>
</p>
<%= RedCloth.new(@<%= file_name %>_revision.wikized_body, [:sanitize_html]).to_html %>

</div><!--end wikiContent-->



</div>

<div id="secondary-alt">
<%= render :partial => '<%= file_name %>_pages/<%= file_name %>_navigation' %>

</div>